-- GENERATED SPELL FOR [Ironroot Lasher] --


function spell0_33526(pUnit, Event) --@Ironroot Thorns,n/a--
pUnit:FullCastSpellOnTarget(63240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33526', 10342, 1)
end

function spell1_33526(pUnit, Event) --@Ironroot Thorns,n/a--
pUnit:FullCastSpellOnTarget(63553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33526', 10287, 1)
end

function Sorts_33526(pUnit, Event)
local choix_sorts_33526 = math.random(0, 1)
if choix_sorts_33526 == 0 then
pUnit:RegisterEvent('spell0_33526', 1, 1)
end
if choix_sorts_33526 == 1 then
pUnit:RegisterEvent('spell1_33526', 1, 1)
end
end

function mob33526_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33526', math.random(1500, 3000), 1)
end

function mob33526_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33526_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33526_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33526, 1, 'mob33526_Action')
RegisterUnitEvent(33526, 2, 'mob33526_Leave')
RegisterUnitEvent(33526, 3, 'mob33526_Kill')
RegisterUnitEvent(33526, 4, 'mob33526_Die')
